import App from './App'
import { createSSRApp } from 'vue'
import uvUI from '@/uni_modules/uv-ui-tools'
// 引入状态管理pinia
import * as Pinia from 'pinia';
import { Request } from '@/api/request/index.js'

export function createApp() {
	const app = createSSRApp(App)
	app.use(uvUI);
	app.use(Pinia.createPinia());
	Request(app)
	return {
		app,
		Pinia, // 此处必须将 Pinia 返回
	}
}